#设置头文件
set(DEVICE_MANGER_HEADER
        device.h
)
#设置源文件
set(DEVICE_MANGER_SOURCE
        device.c
)

#创建静态库
add_library(device_manger STATIC ${DEVICE_MANGER_SOURCE})

#设置包含目录
target_include_directories(device_manger
        PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
)

#连接线程库
target_link_libraries(device_manger
        INTERFACE
        Threads::Threads
)

##设置编译特性
target_compile_features(device_manger INTERFACE cxx_std_17)